import request from '@/utils/request'

// 查询工作台列表
export function listWorkbench(query) {
  return request({
    url: '/resource/workbench/list',
    method: 'get',
    params: query
  })
}
// 用户绩效报表的
export function listuserwork(){
  return request({
    url: '/resource/workbench/queryUserTodoReport',
    method: 'get',
  })
}

// 查询工作台详细
export function getWorkbench(id) {
  return request({
    url: '/resource/workbench/' + id,
    method: 'get'
  })
}

// 新增工作台
export function addWorkbench(data) {
  return request({
    url: '/resource/workbench',
    method: 'post',
    data: data
  })
}

// 修改工作台
export function updateWorkbench(data) {
  return request({
    url: '/resource/workbench',
    method: 'put',
    data: data
  })
}

// 删除工作台
export function delWorkbench(id) {
  return request({
    url: '/resource/workbench/' + id,
    method: 'delete'
  })
}

// 导出工作台
export function exportWorkbench(query) {
  return request({
    url: '/resource/workbench/export',
    method: 'get',
    params: query
  })
}